LINUX: Cleanup a few stray uses of CONFIG_XEN_COMPAT_030002.
authorIan Campbell <ian.campbell@xensource.com>
Wed, 11 Apr 2007 15:08:35 +0000 (16:08 +0100)
committerIan Campbell <ian.campbell@xensource.com>
Wed, 11 Apr 2007 15:08:35 +0000 (16:08 +0100)
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/pgtable.h
linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/pgtable.h

index c317fc886d71e2545b5e2c000083e98d2a22bbb5..7f448182973ec01ace4b81011d9a2b028f45221a 100644 (file)
@@ -210,7 +210,7 @@ extern unsigned long pg0[];
 
 /* To avoid harmful races, pmd_none(x) should check only the lower when PAE */
 #define pmd_none(x)    (!(unsigned long)pmd_val(x))
-#ifdef CONFIG_XEN_COMPAT_030002
+#ifdef CONFIG_XEN_COMPAT <= 0x030002
 /* pmd_present doesn't just test the _PAGE_PRESENT bit since wr.p.t.
    can temporarily clear it. */
 #define pmd_present(x) (pmd_val(x))
index 50ea63879a41efde0d0e4d906072c70dbd87b48f..7a5662620d214d325add8a91a5dff6c674e200f1 100644 (file)
@@ -411,7 +411,7 @@ static inline int pmd_large(pmd_t pte) {
 #define pmd_offset(dir, address) ((pmd_t *) pud_page(*(dir)) + \
                                   pmd_index(address))
 #define pmd_none(x)    (!pmd_val(x))
-#ifdef CONFIG_XEN_COMPAT_030002
+#ifdef CONFIG_XEN_COMPAT <= 0x030002
 /* pmd_present doesn't just test the _PAGE_PRESENT bit since wr.p.t.
    can temporarily clear it. */
 #define pmd_present(x) (pmd_val(x))